<?php

namespace app\common\service\finance\FinanceScene;

abstract class FinanceSceneBase
{


    abstract public function handle():bool;

    //金额的改变
    abstract public function moneyChange():string;
    //代理id
    abstract public function agentId():int;
    //金额，分
    abstract public function amount():int;
    //类型
    abstract public function type():int;
    //资金类型 有预充的余额，也有佣金的余额
    abstract public function balanceType():int;
    //主体id
    abstract public function quoteId();
    //资金备注
    abstract public function remark();

    //交易号
    public function tradeNo(){
        return time().rand(10000,99999);
    }

}